#include <SDL/SDL.h>
#include <stdio.h>

int main ()
{
  SDL_Surface *screen;

  // Init SDL's video system.
  if (SDL_Init(SDL_INIT_VIDEO) != 0) {
    printf("Unable to initialize SDL: %s\n", SDL_GetError());
    return 1;
  }
  
  // Call SDL_Quite when the program exists.
  atexit(SDL_Quit);

  // Set the video mode.
  screen = SDL_SetVideoMode(640, 480, 32, SDL_FULLSCREEN);
  if (screen == NULL) {
    printf("Unable to set video mode: %s\n", SDL_GetError());
    return 1;
  }

  printf("Success!\n");

  return 0;
}
